package com.serkol.ams.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.serkol.ams.entity.AppBrowser;
import com.serkol.ams.mapper.AppBrowserMapper;
import com.serkol.ams.service.AppBrowserService;
import com.serkol.handler.MyLambdaQueryWrapper;
import org.springframework.stereotype.Service;

/**
* @author pingan
* @description 针对表【app_browser】的数据库操作Service实现
* @createDate 2023-05-14 12:34:54
*/
@Service
public class AppBrowserServiceImpl extends ServiceImpl<AppBrowserMapper, AppBrowser>
    implements AppBrowserService{

    @Override
    public AppBrowser findByHash(String hash) {
        MyLambdaQueryWrapper<AppBrowser> queryWrapper=new MyLambdaQueryWrapper<>();
        queryWrapper.eq(AppBrowser::getVhash,hash);
        queryWrapper.last("LIMIT 1");
        return this.getOne(queryWrapper);
    }
}




